package Class.Constructor;

/**
 * Enjoy programming!!!
 * Time: 2021/11/7 -  20:52
 */
public class Detail {
    public static void main(String[] args) {
        Person p = new Person("jeck");
        Person p1 = new Person("jeck", 40);
        Dog p3 = new Dog();
    }
}

class Person {
    public Person(String n) {
        String name;
        name = n;
    }

    public Person(String n, int a) {
        String name;
        int age;
    }
}
class Dog{
    public Dog(String n){

    }
    Dog(){};
}
